package caylus.GUI;
import caylus.Enum.PhaseDuJeu;
import caylus.Model.Croupier;
import caylus.Model.Etiquette;
import caylus.Model.Joueur;
import caylus.Model.Lot;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagLayout;
import java.awt.LayoutManager;
import java.awt.Toolkit;
import java.util.ArrayList;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
public class PlateauDuJeu extends javax.swing.JFrame {

    private GeneralSettings _generalSettings;
    public Croupier _leCroupier;
    private LayoutManager GridBagLayout ;
    private int _selection;
    private ArrayList<JPanel> jPanelSelectionnables;
    public ArrayList<JLabel> _emplacementOuvriers;
    public ArrayList<JLabel> _emplacementPrevotBailli;
    public ArrayList<JLabel> _emplacementChateau ;
    public ArrayList<JLabel> _emplacementDonjon;
    public ArrayList<JLabel> _emplacementMurailles;
    public ArrayList<JLabel> _emplacementTours;
    private int _optionDessinPanelJeu = 0 ;
    public int caseSpecialeTraitee = -1 ;
    public ComposerLot lotCompose ;
    public Lot lot ;
    public int nbLots = 0;
    public ChoixNombreDeLots choixNbLots;
    public Etiquette _etiquette ;
    public int ctrDonjon = 0 ;
    public int ctrMurailles = 0 ;
    public int ctrTours = 0 ;
    
    public PlateauDuJeu(GeneralSettings pGeneralSettings) {
        dimensionnerFenetre();
        _generalSettings = pGeneralSettings;
        // creer et lancer le moteur de jeu
        _leCroupier = new Croupier(_generalSettings, this);
        initComponents();
        init2();
        lancerPartie();
        centrerFenetre();
     }

    public void actualiserZoneAffichageCroupier() {
        jPanelZoneAffichageCroupier.repaint();
    }
    public void preparerChoixNbLots(){
        choixNbLots = new ChoixNombreDeLots(this, true);
        choixNbLots.setVisible(true);
    }
    public void preparerComposerLot(Joueur pJoueur, PhaseDuJeu pPhaseDuJeu) {
        lotCompose = new ComposerLot(this, true, pJoueur, pPhaseDuJeu);
        lotCompose.setVisible(true);
    }
    public void preparerChoixEtiquettes(Joueur pJoueur){
        ChoixEtiquettes choixEtiquettes = new ChoixEtiquettes(this, true, pJoueur);
        choixEtiquettes.setVisible(true);
    }
    public void set_optionDessinPanelJeu(int _optionDessinPanelJeu) {
        this._optionDessinPanelJeu = _optionDessinPanelJeu;
    }
    public int get_optionDessinPanelJeu() {
        return _optionDessinPanelJeu;
    }
     private void lancerPartie() {
        // creer le moteur de jeu
        _leCroupier.setPhaseDuJeu(PhaseDuJeu.PLACEMENT_OUVRIER);
        _leCroupier.PreparerPhaseDeux();
    }
    public void actualiserListeCommandes() {
       int i = 0;
       jComboBoxCommandesCoupsPossible.removeAllItems();
        while(i <_leCroupier.getCoupsPossible().size())
        {
        jComboBoxCommandesCoupsPossible.addItem(_leCroupier.getCoupsPossible().get(i).toString().replace("_", " ").toLowerCase());
        i++;
        }
       if (i>0)
       {
           jComboBoxCommandesCoupsPossible.setEnabled(true);
           jTextFieldCommandesCommentaires.setEnabled(true);
           jButtonCommandesAppliquerCommandes.setEnabled(true);
       }
    }
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanelZoneAffichageCroupier = new DessineSurfaceAffichageCroupier(_generalSettings, _leCroupier);
        jPanelPlateau = new DessineSurfaceDeJeu(new GridBagLayout(),this);
        jPanelCase1 = new DessinerDansCase(0,"src\\Images\\etiquettes\\etiquettesSpeciaux\\Porte.png");
        jLabelOuvrierCase1 = new javax.swing.JLabel();
        jPanelCase2 = new DessinerDansCase(1,"src\\Images\\etiquettes\\etiquettesSpeciaux\\Comptoir.png");
        jLabelOuvrierCase2 = new javax.swing.JLabel();
        jPanelCase3 = new DessinerDansCase(2,"src\\Images\\etiquettes\\etiquettesSpeciaux\\Guilde.png");
        jLabelOuvrierCase3 = new javax.swing.JLabel();
        jPanelCase4 = new DessinerDansCase(3,"src\\Images\\etiquettes\\etiquettesSpeciaux\\ChampDeJoute.png");
        jLabelOuvrierCase4 = new javax.swing.JLabel();
        jPanelCase5 = new DessinerDansCase(4,"src\\Images\\etiquettes\\etiquettesSpeciaux\\Ecurie.png");
        jLabelOuvrierCase5 = new javax.swing.JLabel();
        jLabelOuvrier2Case5 = new javax.swing.JLabel();
        jLabelOuvrier3Case5 = new javax.swing.JLabel();
        jPanelCase6 = new DessinerDansCase(5,"src\\Images\\etiquettes\\etiquettesSpeciaux\\Auberge.png");
        jLabelOuvrierCase6 = new javax.swing.JLabel();
        jPanelCase7 = new DessinerDansCase(6,"src\\Images\\etiquettes\\resteDesEtiquettes\\red3.png");
        jLabelOuvrierCase7 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli7 = new javax.swing.JLabel();
        jPanelCase8 = new DessinerDansCase(7,"src\\Images\\etiquettes\\resteDesEtiquettes\\red6.png");
        jLabelOuvrierCase8 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli8 = new javax.swing.JLabel();
        jPanelCase9 = new DessinerDansCase(8,"src\\Images\\etiquettes\\resteDesEtiquettes\\red1.png");
        jLabelOuvrierCase9 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli9 = new javax.swing.JLabel();
        jPanelCase10 = new DessinerDansCase(9,"src\\Images\\etiquettes\\resteDesEtiquettes\\red4.png");
        jLabelOuvrierCase10 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli10 = new javax.swing.JLabel();
        jPanelCase11 = new DessinerDansCase(10,"src\\Images\\etiquettes\\resteDesEtiquettes\\red2.png");
        jLabelOuvrierCase11 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli11 = new javax.swing.JLabel();
        jPanelCase12 = new DessinerDansCase(11,"src\\Images\\etiquettes\\resteDesEtiquettes\\red5.png");
        jLabelOuvrierCase12 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli12 = new javax.swing.JLabel();
        jPanelCase13 = new DessinerDansCase(12,"src\\Images\\etiquettes\\resteDesEtiquettes\\batimentFixe1.png");
        jLabelOuvrierCase13 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli13 = new javax.swing.JLabel();
        jPanelCase14 = new DessinerDansCase(13,"src\\Images\\etiquettes\\resteDesEtiquettes\\batimentFixe2.png");
        jLabelOuvrierCase14 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli14 = new javax.swing.JLabel();
        jPanelCase15 = new DessinerDansCase(14,"src\\Images\\etiquettes\\c15.png");
        jLabelOuvrierCase15 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli15 = new javax.swing.JLabel();
        jPanelCase16 = new DessinerDansCase(15,"src\\Images\\etiquettes\\c16.png");
        jLabelOuvrierCase16 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli16 = new javax.swing.JLabel();
        jPanelCase17 = new DessinerDansCase(16,"src\\Images\\etiquettes\\c17.png");
        jLabelOuvrierCase17 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli17 = new javax.swing.JLabel();
        jPanelCase18 = new DessinerDansCase(17,"src\\Images\\etiquettes\\c18.png");
        jLabelOuvrierCase18 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli18 = new javax.swing.JLabel();
        jPanelCase19 = new DessinerDansCase(18,"src\\Images\\etiquettes\\c19.png");
        jLabelOuvrierCase19 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli19 = new javax.swing.JLabel();
        jPanelCase20 = new DessinerDansCase(19,"src\\Images\\etiquettes\\c20.png");
        jLabelOuvrierCase20 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli20 = new javax.swing.JLabel();
        jPanelCase21 = new DessinerDansCase(20,"src\\Images\\etiquettes\\c21.png");
        jLabelOuvrierCase21 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli21 = new javax.swing.JLabel();
        jPanelCase22 = new DessinerDansCase(21,"src\\Images\\etiquettes\\resteDesEtiquettes\\batimentFixe3.png");
        jLabelOuvrierCase22 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli22 = new javax.swing.JLabel();
        jPanelCase23 = new DessinerDansCase(22,"src\\Images\\etiquettes\\c23.png");
        jLabelOuvrierCase23 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli23 = new javax.swing.JLabel();
        jPanelCase24 = new DessinerDansCase(23,"src\\Images\\etiquettes\\c24.png");
        jLabelOuvrierCase24 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli24 = new javax.swing.JLabel();
        jPanelCase25 = new DessinerDansCase(24,"src\\Images\\etiquettes\\c25.png");
        jLabelOuvrierCase25 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli25 = new javax.swing.JLabel();
        jPanelCase26 = new DessinerDansCase(25,"src\\Images\\etiquettes\\c26.png");
        jLabelOuvrierCase26 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli26 = new javax.swing.JLabel();
        jPanelCase27 = new DessinerDansCase(26,"src\\Images\\etiquettes\\c27.png");
        jLabelOuvrierCase27 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli27 = new javax.swing.JLabel();
        jPanelCase28 = new DessinerDansCase(27,"src\\Images\\etiquettes\\c28.png");
        jLabelOuvrierCase28 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli28 = new javax.swing.JLabel();
        jPanelCase29 = new DessinerDansCase(28,"src\\Images\\etiquettes\\c29.png");
        jLabelOuvrierCase29 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli29 = new javax.swing.JLabel();
        jPanelCase30 = new DessinerDansCase(29,"src\\Images\\etiquettes\\c30.png");
        jLabelOuvrierCase30 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli30 = new javax.swing.JLabel();
        jPanelCase31 = new DessinerDansCase(30,"src\\Images\\etiquettes\\c31.png");
        jLabelOuvrierCase31 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli31 = new javax.swing.JLabel();
        jPanelCase32 = new DessinerDansCase(31,"src\\Images\\etiquettes\\c32.png");
        jLabelOuvrierCase32 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli32 = new javax.swing.JLabel();
        jPanelCase33 = new DessinerDansCase(32,"src\\Images\\etiquettes\\c33.png");
        jLabelOuvrierCase33 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli33 = new javax.swing.JLabel();
        jPanelCase34 = new DessinerDansCase(33,"src\\Images\\etiquettes\\c34.png");
        jLabelOuvrierCase34 = new javax.swing.JLabel();
        jLabelEmplacementPrevotBailli34 = new javax.swing.JLabel();
        jPanelCase40 = new DessinerDansCase(1,"src\\Images\\etiquettes\\c2.png");
        jLabelOuvrierCase40 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jLabelChateauOuvrier1 = new javax.swing.JLabel();
        jLabelChateauOuvrier2 = new javax.swing.JLabel();
        jLabelChateauOuvrier3 = new javax.swing.JLabel();
        jLabelChateauOuvrier4 = new javax.swing.JLabel();
        jLabelChateauOuvrier5 = new javax.swing.JLabel();
        jPanelChateau = new javax.swing.JPanel();
        jPanelDonjon = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabelChateauDonjon1 = new javax.swing.JLabel();
        jLabelChateauDonjon2 = new javax.swing.JLabel();
        jLabelChateauDonjon3 = new javax.swing.JLabel();
        jLabelChateauDonjon4 = new javax.swing.JLabel();
        jLabelChateauDonjon5 = new javax.swing.JLabel();
        jLabelChateauDonjon6 = new javax.swing.JLabel();
        jLabelChateauMurailles1 = new javax.swing.JLabel();
        jLabelChateauMurailles2 = new javax.swing.JLabel();
        jLabelChateauMurailles3 = new javax.swing.JLabel();
        jLabelChateauMurailles4 = new javax.swing.JLabel();
        jLabelChateauMurailles5 = new javax.swing.JLabel();
        jLabelChateauMurailles10 = new javax.swing.JLabel();
        jLabelChateauMurailles9 = new javax.swing.JLabel();
        jLabelChateauMurailles8 = new javax.swing.JLabel();
        jLabelChateauMurailles7 = new javax.swing.JLabel();
        jLabelChateauMurailles6 = new javax.swing.JLabel();
        jLabelChateauTours1 = new javax.swing.JLabel();
        jLabelChateauTours2 = new javax.swing.JLabel();
        jLabelChateauTours3 = new javax.swing.JLabel();
        jLabelChateauTours4 = new javax.swing.JLabel();
        jLabelChateauTours5 = new javax.swing.JLabel();
        jLabelChateauTours6 = new javax.swing.JLabel();
        jLabelChateauTours7 = new javax.swing.JLabel();
        jLabelChateauTours8 = new javax.swing.JLabel();
        jLabelChateauTours9 = new javax.swing.JLabel();
        jLabelChateauTours10 = new javax.swing.JLabel();
        jLabelChateauTours11 = new javax.swing.JLabel();
        jLabelChateauTours12 = new javax.swing.JLabel();
        jLabelChateauTours13 = new javax.swing.JLabel();
        jLabelChateauTours14 = new javax.swing.JLabel();
        jPanelZoneAffichageJoueur = new DessineSurfaceAffichageJoueur(_generalSettings,_leCroupier);
        jPanelAffichageCommande = new javax.swing.JPanel();
        jLabelCommandeCoupsPossible = new javax.swing.JLabel();
        jComboBoxCommandesCoupsPossible = new javax.swing.JComboBox();
        jButtonCommandesAppliquerCommandes = new javax.swing.JButton();
        jTextFieldCommandesCommentaires = new javax.swing.JTextField();
        jMenuBarFenetreDeJeu = new javax.swing.JMenuBar();
        jMenuFenetreDeJeuFichier = new javax.swing.JMenu();
        jMenuFenetreDeJeuFichierSauvegarde = new javax.swing.JMenuItem();
        jMenuFenetreDeJeuFichierQuitter = new javax.swing.JMenuItem();
        jMenuFenetreDeJeuOutils = new javax.swing.JMenu();
        jMenuFenetreDeJeuOutilsInfos = new javax.swing.JMenuItem();
        jMenuFenetreDeJeuOutilsAmbiance = new javax.swing.JMenuItem();
        jMenuFenetreDeJeuAide = new javax.swing.JMenu();
        jMenuFenetreDeJeuAideReglesDuJeu = new javax.swing.JMenuItem();
        jMenuFenetreDeJeuExclamation = new javax.swing.JMenu();
        jMenuFenetreDeJeuExclamationAPropos = new javax.swing.JMenuItem();
        jMenuFenetreDeJeuExclamationDeveloppeurs = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Caylus - Plateau de jeu");
        setResizable(false);

        jPanelZoneAffichageCroupier.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Croupier", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 0, 11))); // NOI18N

        javax.swing.GroupLayout jPanelZoneAffichageCroupierLayout = new javax.swing.GroupLayout(jPanelZoneAffichageCroupier);
        jPanelZoneAffichageCroupier.setLayout(jPanelZoneAffichageCroupierLayout);
        jPanelZoneAffichageCroupierLayout.setHorizontalGroup(
            jPanelZoneAffichageCroupierLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 221, Short.MAX_VALUE)
        );
        jPanelZoneAffichageCroupierLayout.setVerticalGroup(
            jPanelZoneAffichageCroupierLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 695, Short.MAX_VALUE)
        );

        jPanelPlateau.setPreferredSize(new java.awt.Dimension(600, 1000));

        jPanelCase1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase1.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase1MouseClicked(evt);
            }
        });

        jLabelOuvrierCase1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase1Layout = new javax.swing.GroupLayout(jPanelCase1);
        jPanelCase1.setLayout(jPanelCase1Layout);
        jPanelCase1Layout.setHorizontalGroup(
            jPanelCase1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase1Layout.createSequentialGroup()
                .addComponent(jLabelOuvrierCase1)
                .addContainerGap(48, Short.MAX_VALUE))
        );
        jPanelCase1Layout.setVerticalGroup(
            jPanelCase1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase1Layout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addComponent(jLabelOuvrierCase1)
                .addContainerGap(20, Short.MAX_VALUE))
        );

        jPanelCase2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase2.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase2MouseClicked(evt);
            }
        });

        jLabelOuvrierCase2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase2Layout = new javax.swing.GroupLayout(jPanelCase2);
        jPanelCase2.setLayout(jPanelCase2Layout);
        jPanelCase2Layout.setHorizontalGroup(
            jPanelCase2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase2Layout.createSequentialGroup()
                .addComponent(jLabelOuvrierCase2)
                .addContainerGap(48, Short.MAX_VALUE))
        );
        jPanelCase2Layout.setVerticalGroup(
            jPanelCase2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase2Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase2)
                .addContainerGap(25, Short.MAX_VALUE))
        );

        jPanelCase3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase3.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase3MouseClicked(evt);
            }
        });

        jLabelOuvrierCase3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase3Layout = new javax.swing.GroupLayout(jPanelCase3);
        jPanelCase3.setLayout(jPanelCase3Layout);
        jPanelCase3Layout.setHorizontalGroup(
            jPanelCase3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase3Layout.createSequentialGroup()
                .addComponent(jLabelOuvrierCase3)
                .addContainerGap(48, Short.MAX_VALUE))
        );
        jPanelCase3Layout.setVerticalGroup(
            jPanelCase3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase3Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase3)
                .addContainerGap(25, Short.MAX_VALUE))
        );

        jPanelCase4.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase4.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase4MouseClicked(evt);
            }
        });

        jLabelOuvrierCase4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase4Layout = new javax.swing.GroupLayout(jPanelCase4);
        jPanelCase4.setLayout(jPanelCase4Layout);
        jPanelCase4Layout.setHorizontalGroup(
            jPanelCase4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase4Layout.createSequentialGroup()
                .addComponent(jLabelOuvrierCase4)
                .addContainerGap(48, Short.MAX_VALUE))
        );
        jPanelCase4Layout.setVerticalGroup(
            jPanelCase4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase4Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase4)
                .addContainerGap(25, Short.MAX_VALUE))
        );

        jPanelCase5.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase5.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase5MouseClicked(evt);
            }
        });

        jLabelOuvrierCase5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelOuvrier2Case5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelOuvrier3Case5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase5Layout = new javax.swing.GroupLayout(jPanelCase5);
        jPanelCase5.setLayout(jPanelCase5Layout);
        jPanelCase5Layout.setHorizontalGroup(
            jPanelCase5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase5Layout.createSequentialGroup()
                .addGroup(jPanelCase5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelCase5Layout.createSequentialGroup()
                        .addGap(38, 38, 38)
                        .addComponent(jLabelOuvrierCase5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelCase5Layout.createSequentialGroup()
                        .addGap(38, 38, 38)
                        .addComponent(jLabelOuvrier2Case5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelCase5Layout.createSequentialGroup()
                        .addContainerGap(38, Short.MAX_VALUE)
                        .addComponent(jLabelOuvrier3Case5)))
                .addContainerGap())
        );
        jPanelCase5Layout.setVerticalGroup(
            jPanelCase5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelOuvrierCase5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelOuvrier2Case5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelOuvrier3Case5)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanelCase6.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase6.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase6MouseClicked(evt);
            }
        });

        jLabelOuvrierCase6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase6Layout = new javax.swing.GroupLayout(jPanelCase6);
        jPanelCase6.setLayout(jPanelCase6Layout);
        jPanelCase6Layout.setHorizontalGroup(
            jPanelCase6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase6Layout.createSequentialGroup()
                .addComponent(jLabelOuvrierCase6)
                .addContainerGap(48, Short.MAX_VALUE))
        );
        jPanelCase6Layout.setVerticalGroup(
            jPanelCase6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase6Layout.createSequentialGroup()
                .addGap(43, 43, 43)
                .addComponent(jLabelOuvrierCase6)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanelCase7.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase7.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase7MouseClicked(evt);
            }
        });

        jLabelOuvrierCase7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase7Layout = new javax.swing.GroupLayout(jPanelCase7);
        jPanelCase7.setLayout(jPanelCase7Layout);
        jPanelCase7Layout.setHorizontalGroup(
            jPanelCase7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase7Layout.createSequentialGroup()
                .addGroup(jPanelCase7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase7)
                    .addComponent(jLabelEmplacementPrevotBailli7))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase7Layout.setVerticalGroup(
            jPanelCase7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase7Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase7)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli7))
        );

        jPanelCase8.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase8.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase8MouseClicked(evt);
            }
        });

        jLabelOuvrierCase8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase8Layout = new javax.swing.GroupLayout(jPanelCase8);
        jPanelCase8.setLayout(jPanelCase8Layout);
        jPanelCase8Layout.setHorizontalGroup(
            jPanelCase8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase8Layout.createSequentialGroup()
                .addGroup(jPanelCase8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase8)
                    .addComponent(jLabelEmplacementPrevotBailli8))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase8Layout.setVerticalGroup(
            jPanelCase8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase8Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase8)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli8))
        );

        jPanelCase9.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase9.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase9MouseClicked(evt);
            }
        });

        jLabelOuvrierCase9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase9Layout = new javax.swing.GroupLayout(jPanelCase9);
        jPanelCase9.setLayout(jPanelCase9Layout);
        jPanelCase9Layout.setHorizontalGroup(
            jPanelCase9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase9Layout.createSequentialGroup()
                .addGroup(jPanelCase9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase9)
                    .addComponent(jLabelEmplacementPrevotBailli9))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase9Layout.setVerticalGroup(
            jPanelCase9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase9Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase9)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli9))
        );

        jPanelCase10.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase10.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase10MouseClicked(evt);
            }
        });

        jLabelOuvrierCase10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase10Layout = new javax.swing.GroupLayout(jPanelCase10);
        jPanelCase10.setLayout(jPanelCase10Layout);
        jPanelCase10Layout.setHorizontalGroup(
            jPanelCase10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase10Layout.createSequentialGroup()
                .addGroup(jPanelCase10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase10)
                    .addComponent(jLabelEmplacementPrevotBailli10))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase10Layout.setVerticalGroup(
            jPanelCase10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase10Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase10)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli10))
        );

        jPanelCase11.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase11.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase11MouseClicked(evt);
            }
        });

        jLabelOuvrierCase11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase11Layout = new javax.swing.GroupLayout(jPanelCase11);
        jPanelCase11.setLayout(jPanelCase11Layout);
        jPanelCase11Layout.setHorizontalGroup(
            jPanelCase11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase11Layout.createSequentialGroup()
                .addGroup(jPanelCase11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase11)
                    .addComponent(jLabelEmplacementPrevotBailli11))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase11Layout.setVerticalGroup(
            jPanelCase11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase11Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase11)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli11))
        );

        jPanelCase12.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase12.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase12MouseClicked(evt);
            }
        });

        jLabelOuvrierCase12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase12Layout = new javax.swing.GroupLayout(jPanelCase12);
        jPanelCase12.setLayout(jPanelCase12Layout);
        jPanelCase12Layout.setHorizontalGroup(
            jPanelCase12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase12Layout.createSequentialGroup()
                .addGroup(jPanelCase12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase12)
                    .addComponent(jLabelEmplacementPrevotBailli12))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase12Layout.setVerticalGroup(
            jPanelCase12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase12Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase12)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli12))
        );

        jPanelCase13.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase13.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase13.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase13MouseClicked(evt);
            }
        });

        jLabelOuvrierCase13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase13Layout = new javax.swing.GroupLayout(jPanelCase13);
        jPanelCase13.setLayout(jPanelCase13Layout);
        jPanelCase13Layout.setHorizontalGroup(
            jPanelCase13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase13Layout.createSequentialGroup()
                .addGroup(jPanelCase13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase13)
                    .addComponent(jLabelEmplacementPrevotBailli13))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase13Layout.setVerticalGroup(
            jPanelCase13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase13Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase13)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli13))
        );

        jPanelCase14.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase14.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase14.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase14MouseClicked(evt);
            }
        });

        jLabelOuvrierCase14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase14Layout = new javax.swing.GroupLayout(jPanelCase14);
        jPanelCase14.setLayout(jPanelCase14Layout);
        jPanelCase14Layout.setHorizontalGroup(
            jPanelCase14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase14Layout.createSequentialGroup()
                .addGroup(jPanelCase14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase14)
                    .addComponent(jLabelEmplacementPrevotBailli14))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase14Layout.setVerticalGroup(
            jPanelCase14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase14Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase14)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli14))
        );

        jPanelCase15.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase15.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase15.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase15MouseClicked(evt);
            }
        });

        jLabelOuvrierCase15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase15Layout = new javax.swing.GroupLayout(jPanelCase15);
        jPanelCase15.setLayout(jPanelCase15Layout);
        jPanelCase15Layout.setHorizontalGroup(
            jPanelCase15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase15Layout.createSequentialGroup()
                .addGroup(jPanelCase15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase15)
                    .addComponent(jLabelEmplacementPrevotBailli15))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase15Layout.setVerticalGroup(
            jPanelCase15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase15Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase15)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli15))
        );

        jPanelCase16.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase16.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase16.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase16MouseClicked(evt);
            }
        });

        jLabelOuvrierCase16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase16Layout = new javax.swing.GroupLayout(jPanelCase16);
        jPanelCase16.setLayout(jPanelCase16Layout);
        jPanelCase16Layout.setHorizontalGroup(
            jPanelCase16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase16Layout.createSequentialGroup()
                .addGroup(jPanelCase16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase16)
                    .addComponent(jLabelEmplacementPrevotBailli16))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase16Layout.setVerticalGroup(
            jPanelCase16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase16Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase16)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli16))
        );

        jPanelCase17.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase17.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase17.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase17MouseClicked(evt);
            }
        });

        jLabelOuvrierCase17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase17Layout = new javax.swing.GroupLayout(jPanelCase17);
        jPanelCase17.setLayout(jPanelCase17Layout);
        jPanelCase17Layout.setHorizontalGroup(
            jPanelCase17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase17Layout.createSequentialGroup()
                .addGroup(jPanelCase17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase17)
                    .addComponent(jLabelEmplacementPrevotBailli17))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase17Layout.setVerticalGroup(
            jPanelCase17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase17Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase17)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli17))
        );

        jPanelCase18.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase18.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase18.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase18MouseClicked(evt);
            }
        });

        jLabelOuvrierCase18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase18Layout = new javax.swing.GroupLayout(jPanelCase18);
        jPanelCase18.setLayout(jPanelCase18Layout);
        jPanelCase18Layout.setHorizontalGroup(
            jPanelCase18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase18Layout.createSequentialGroup()
                .addGroup(jPanelCase18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase18)
                    .addComponent(jLabelEmplacementPrevotBailli18))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase18Layout.setVerticalGroup(
            jPanelCase18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase18Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase18)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli18))
        );

        jPanelCase19.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase19.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase19.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase19MouseClicked(evt);
            }
        });

        jLabelOuvrierCase19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase19Layout = new javax.swing.GroupLayout(jPanelCase19);
        jPanelCase19.setLayout(jPanelCase19Layout);
        jPanelCase19Layout.setHorizontalGroup(
            jPanelCase19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase19Layout.createSequentialGroup()
                .addGroup(jPanelCase19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase19)
                    .addComponent(jLabelEmplacementPrevotBailli19))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase19Layout.setVerticalGroup(
            jPanelCase19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase19Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase19)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli19))
        );

        jPanelCase20.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase20.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase20.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase20MouseClicked(evt);
            }
        });

        jLabelOuvrierCase20.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli20.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase20Layout = new javax.swing.GroupLayout(jPanelCase20);
        jPanelCase20.setLayout(jPanelCase20Layout);
        jPanelCase20Layout.setHorizontalGroup(
            jPanelCase20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase20Layout.createSequentialGroup()
                .addGroup(jPanelCase20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase20)
                    .addComponent(jLabelEmplacementPrevotBailli20))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase20Layout.setVerticalGroup(
            jPanelCase20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase20Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase20)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli20))
        );

        jPanelCase21.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase21.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase21.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase21MouseClicked(evt);
            }
        });

        jLabelOuvrierCase21.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli21.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase21Layout = new javax.swing.GroupLayout(jPanelCase21);
        jPanelCase21.setLayout(jPanelCase21Layout);
        jPanelCase21Layout.setHorizontalGroup(
            jPanelCase21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase21Layout.createSequentialGroup()
                .addGroup(jPanelCase21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase21)
                    .addComponent(jLabelEmplacementPrevotBailli21))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase21Layout.setVerticalGroup(
            jPanelCase21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase21Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase21)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli21))
        );

        jPanelCase22.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase22.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase22.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase22MouseClicked(evt);
            }
        });

        jLabelOuvrierCase22.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli22.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase22Layout = new javax.swing.GroupLayout(jPanelCase22);
        jPanelCase22.setLayout(jPanelCase22Layout);
        jPanelCase22Layout.setHorizontalGroup(
            jPanelCase22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase22Layout.createSequentialGroup()
                .addGroup(jPanelCase22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase22)
                    .addComponent(jLabelEmplacementPrevotBailli22))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase22Layout.setVerticalGroup(
            jPanelCase22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase22Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase22)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli22))
        );

        jPanelCase23.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase23.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase23.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase23MouseClicked(evt);
            }
        });

        jLabelOuvrierCase23.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli23.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase23Layout = new javax.swing.GroupLayout(jPanelCase23);
        jPanelCase23.setLayout(jPanelCase23Layout);
        jPanelCase23Layout.setHorizontalGroup(
            jPanelCase23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase23Layout.createSequentialGroup()
                .addGroup(jPanelCase23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase23)
                    .addComponent(jLabelEmplacementPrevotBailli23))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase23Layout.setVerticalGroup(
            jPanelCase23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase23Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase23)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli23))
        );

        jPanelCase24.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase24.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase24.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase24MouseClicked(evt);
            }
        });

        jLabelOuvrierCase24.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli24.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase24Layout = new javax.swing.GroupLayout(jPanelCase24);
        jPanelCase24.setLayout(jPanelCase24Layout);
        jPanelCase24Layout.setHorizontalGroup(
            jPanelCase24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase24Layout.createSequentialGroup()
                .addGroup(jPanelCase24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase24)
                    .addComponent(jLabelEmplacementPrevotBailli24))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase24Layout.setVerticalGroup(
            jPanelCase24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase24Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase24)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli24))
        );

        jPanelCase25.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase25.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase25.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase25MouseClicked(evt);
            }
        });

        jLabelOuvrierCase25.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli25.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase25Layout = new javax.swing.GroupLayout(jPanelCase25);
        jPanelCase25.setLayout(jPanelCase25Layout);
        jPanelCase25Layout.setHorizontalGroup(
            jPanelCase25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase25Layout.createSequentialGroup()
                .addGroup(jPanelCase25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase25)
                    .addComponent(jLabelEmplacementPrevotBailli25))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase25Layout.setVerticalGroup(
            jPanelCase25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase25Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase25)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli25))
        );

        jPanelCase26.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase26.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase26.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase26MouseClicked(evt);
            }
        });

        jLabelOuvrierCase26.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli26.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase26Layout = new javax.swing.GroupLayout(jPanelCase26);
        jPanelCase26.setLayout(jPanelCase26Layout);
        jPanelCase26Layout.setHorizontalGroup(
            jPanelCase26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase26Layout.createSequentialGroup()
                .addGroup(jPanelCase26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase26)
                    .addComponent(jLabelEmplacementPrevotBailli26))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase26Layout.setVerticalGroup(
            jPanelCase26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase26Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase26)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli26))
        );

        jPanelCase27.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase27.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase27.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase27MouseClicked(evt);
            }
        });

        jLabelOuvrierCase27.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli27.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase27Layout = new javax.swing.GroupLayout(jPanelCase27);
        jPanelCase27.setLayout(jPanelCase27Layout);
        jPanelCase27Layout.setHorizontalGroup(
            jPanelCase27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase27Layout.createSequentialGroup()
                .addGroup(jPanelCase27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase27)
                    .addComponent(jLabelEmplacementPrevotBailli27))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase27Layout.setVerticalGroup(
            jPanelCase27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase27Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase27)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli27))
        );

        jPanelCase28.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase28.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase28.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase28MouseClicked(evt);
            }
        });

        jLabelOuvrierCase28.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli28.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase28Layout = new javax.swing.GroupLayout(jPanelCase28);
        jPanelCase28.setLayout(jPanelCase28Layout);
        jPanelCase28Layout.setHorizontalGroup(
            jPanelCase28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase28Layout.createSequentialGroup()
                .addGroup(jPanelCase28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase28)
                    .addComponent(jLabelEmplacementPrevotBailli28))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase28Layout.setVerticalGroup(
            jPanelCase28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase28Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase28)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli28))
        );

        jPanelCase29.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase29.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase29.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase29MouseClicked(evt);
            }
        });

        jLabelOuvrierCase29.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli29.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase29Layout = new javax.swing.GroupLayout(jPanelCase29);
        jPanelCase29.setLayout(jPanelCase29Layout);
        jPanelCase29Layout.setHorizontalGroup(
            jPanelCase29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase29Layout.createSequentialGroup()
                .addGroup(jPanelCase29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase29)
                    .addComponent(jLabelEmplacementPrevotBailli29))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase29Layout.setVerticalGroup(
            jPanelCase29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase29Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase29)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli29))
        );

        jPanelCase30.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase30.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase30.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase30MouseClicked(evt);
            }
        });

        jLabelOuvrierCase30.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli30.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase30Layout = new javax.swing.GroupLayout(jPanelCase30);
        jPanelCase30.setLayout(jPanelCase30Layout);
        jPanelCase30Layout.setHorizontalGroup(
            jPanelCase30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase30Layout.createSequentialGroup()
                .addGroup(jPanelCase30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase30)
                    .addComponent(jLabelEmplacementPrevotBailli30))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase30Layout.setVerticalGroup(
            jPanelCase30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase30Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase30)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli30))
        );

        jPanelCase31.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase31.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase31.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase31MouseClicked(evt);
            }
        });

        jLabelOuvrierCase31.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli31.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase31Layout = new javax.swing.GroupLayout(jPanelCase31);
        jPanelCase31.setLayout(jPanelCase31Layout);
        jPanelCase31Layout.setHorizontalGroup(
            jPanelCase31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase31Layout.createSequentialGroup()
                .addGroup(jPanelCase31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase31)
                    .addComponent(jLabelEmplacementPrevotBailli31))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase31Layout.setVerticalGroup(
            jPanelCase31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase31Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase31)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli31))
        );

        jPanelCase32.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase32.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase32.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase32MouseClicked(evt);
            }
        });

        jLabelOuvrierCase32.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli32.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase32Layout = new javax.swing.GroupLayout(jPanelCase32);
        jPanelCase32.setLayout(jPanelCase32Layout);
        jPanelCase32Layout.setHorizontalGroup(
            jPanelCase32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase32Layout.createSequentialGroup()
                .addGroup(jPanelCase32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase32)
                    .addComponent(jLabelEmplacementPrevotBailli32))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase32Layout.setVerticalGroup(
            jPanelCase32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase32Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase32)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli32))
        );

        jPanelCase33.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase33.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase33.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase33MouseClicked(evt);
            }
        });

        jLabelOuvrierCase33.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli33.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase33Layout = new javax.swing.GroupLayout(jPanelCase33);
        jPanelCase33.setLayout(jPanelCase33Layout);
        jPanelCase33Layout.setHorizontalGroup(
            jPanelCase33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase33Layout.createSequentialGroup()
                .addGroup(jPanelCase33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase33)
                    .addComponent(jLabelEmplacementPrevotBailli33))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase33Layout.setVerticalGroup(
            jPanelCase33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase33Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase33)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli33))
        );

        jPanelCase34.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase34.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase34.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase34MouseClicked(evt);
            }
        });

        jLabelOuvrierCase34.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelEmplacementPrevotBailli34.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase34Layout = new javax.swing.GroupLayout(jPanelCase34);
        jPanelCase34.setLayout(jPanelCase34Layout);
        jPanelCase34Layout.setHorizontalGroup(
            jPanelCase34Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase34Layout.createSequentialGroup()
                .addGroup(jPanelCase34Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelOuvrierCase34)
                    .addComponent(jLabelEmplacementPrevotBailli34))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelCase34Layout.setVerticalGroup(
            jPanelCase34Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase34Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase34)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addComponent(jLabelEmplacementPrevotBailli34))
        );

        jPanelCase40.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelCase40.setPreferredSize(new java.awt.Dimension(60, 59));
        jPanelCase40.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelCase2MouseClicked(evt);
            }
        });

        jLabelOuvrierCase40.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        javax.swing.GroupLayout jPanelCase40Layout = new javax.swing.GroupLayout(jPanelCase40);
        jPanelCase40.setLayout(jPanelCase40Layout);
        jPanelCase40Layout.setHorizontalGroup(
            jPanelCase40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase40Layout.createSequentialGroup()
                .addComponent(jLabelOuvrierCase40)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelCase40Layout.setVerticalGroup(
            jPanelCase40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCase40Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabelOuvrierCase40)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 63, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 60, Short.MAX_VALUE)
        );

        jLabelChateauOuvrier1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauOuvrier2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauOuvrier3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauOuvrier4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauOuvrier5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jPanelChateau.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelChateau.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jPanelChateauMouseClicked(evt);
            }
        });

        jLabel1.setText("Donjon");

        javax.swing.GroupLayout jPanelDonjonLayout = new javax.swing.GroupLayout(jPanelDonjon);
        jPanelDonjon.setLayout(jPanelDonjonLayout);
        jPanelDonjonLayout.setHorizontalGroup(
            jPanelDonjonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDonjonLayout.createSequentialGroup()
                .addComponent(jLabel1)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelDonjonLayout.setVerticalGroup(
            jPanelDonjonLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel1)
        );

        jLabel2.setText("Murailles");

        jLabel3.setText("Tours");

        jLabelChateauDonjon1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauDonjon2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauDonjon3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauDonjon4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauDonjon5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauDonjon6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauMurailles1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauMurailles2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauMurailles3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauMurailles4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauMurailles5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauMurailles10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauMurailles9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauMurailles8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauMurailles7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauMurailles6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        jLabelChateauTours14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/rouge.png"))); // NOI18N

        javax.swing.GroupLayout jPanelChateauLayout = new javax.swing.GroupLayout(jPanelChateau);
        jPanelChateau.setLayout(jPanelChateauLayout);
        jPanelChateauLayout.setHorizontalGroup(
            jPanelChateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelChateauLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelChateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelChateauLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jLabelChateauDonjon1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabelChateauDonjon2)
                        .addGap(10, 10, 10)
                        .addComponent(jLabelChateauDonjon3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabelChateauDonjon4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabelChateauDonjon5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabelChateauDonjon6))
                    .addComponent(jPanelDonjon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2)
                    .addGroup(jPanelChateauLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(jPanelChateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelChateauLayout.createSequentialGroup()
                                .addComponent(jLabelChateauMurailles6)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauMurailles7)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauMurailles8)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauMurailles9)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauMurailles10))
                            .addGroup(jPanelChateauLayout.createSequentialGroup()
                                .addComponent(jLabelChateauMurailles1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauMurailles2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauMurailles3)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauMurailles4)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauMurailles5))))
                    .addComponent(jLabel3)
                    .addGroup(jPanelChateauLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(jPanelChateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelChateauLayout.createSequentialGroup()
                                .addComponent(jLabelChateauTours8)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauTours9)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauTours10)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauTours11)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauTours12)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauTours13)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauTours14))
                            .addGroup(jPanelChateauLayout.createSequentialGroup()
                                .addComponent(jLabelChateauTours1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauTours2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauTours3)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauTours4)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauTours5)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauTours6)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelChateauTours7)))))
                .addContainerGap(82, Short.MAX_VALUE))
        );
        jPanelChateauLayout.setVerticalGroup(
            jPanelChateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelChateauLayout.createSequentialGroup()
                .addComponent(jPanelDonjon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelChateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelChateauDonjon6)
                    .addGroup(jPanelChateauLayout.createSequentialGroup()
                        .addGroup(jPanelChateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelChateauLayout.createSequentialGroup()
                                .addGroup(jPanelChateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabelChateauDonjon1)
                                    .addComponent(jLabelChateauDonjon2))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel2))
                            .addComponent(jLabelChateauDonjon3)
                            .addComponent(jLabelChateauDonjon4)
                            .addComponent(jLabelChateauDonjon5))
                        .addGap(4, 4, 4)
                        .addGroup(jPanelChateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelChateauMurailles5)
                            .addComponent(jLabelChateauMurailles4)
                            .addComponent(jLabelChateauMurailles3)
                            .addComponent(jLabelChateauMurailles1)
                            .addComponent(jLabelChateauMurailles2))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelChateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelChateauMurailles10)
                    .addComponent(jLabelChateauMurailles9)
                    .addComponent(jLabelChateauMurailles8)
                    .addComponent(jLabelChateauMurailles6)
                    .addComponent(jLabelChateauMurailles7))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelChateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelChateauTours7)
                    .addComponent(jLabelChateauTours1)
                    .addComponent(jLabelChateauTours2)
                    .addComponent(jLabelChateauTours3)
                    .addComponent(jLabelChateauTours4)
                    .addComponent(jLabelChateauTours5)
                    .addComponent(jLabelChateauTours6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelChateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelChateauTours14)
                    .addComponent(jLabelChateauTours8)
                    .addComponent(jLabelChateauTours9)
                    .addComponent(jLabelChateauTours10)
                    .addComponent(jLabelChateauTours11)
                    .addComponent(jLabelChateauTours12)
                    .addComponent(jLabelChateauTours13))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanelPlateauLayout = new javax.swing.GroupLayout(jPanelPlateau);
        jPanelPlateau.setLayout(jPanelPlateauLayout);
        jPanelPlateauLayout.setHorizontalGroup(
            jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelPlateauLayout.createSequentialGroup()
                .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanelPlateauLayout.createSequentialGroup()
                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                .addComponent(jPanelCase11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jPanelCase12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                .addComponent(jPanelCase10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jPanelCase8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanelCase13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                .addComponent(jPanelCase14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(6, 6, 6)
                                .addComponent(jPanelCase16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jPanelCase7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanelPlateauLayout.createSequentialGroup()
                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanelCase27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanelCase26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                .addComponent(jPanelCase25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                .addComponent(jPanelCase28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase30, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase33, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(jPanelPlateauLayout.createSequentialGroup()
                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                .addGap(42, 42, 42)
                                .addComponent(jLabelChateauOuvrier1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabelChateauOuvrier2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabelChateauOuvrier3)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabelChateauOuvrier4)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabelChateauOuvrier5))
                            .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(jPanelChateau, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, Short.MAX_VALUE)
                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanelCase6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelPlateauLayout.createSequentialGroup()
                                .addComponent(jPanelCase1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelCase3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelCase18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelCase4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelCase5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelCase19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelCase34, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(216, 216, 216)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanelPlateauLayout.setVerticalGroup(
            jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelPlateauLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelPlateauLayout.createSequentialGroup()
                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                .addGap(66, 66, 66)
                                .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jPanelCase3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jPanelCase2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jPanelCase4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jPanelCase1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jPanelChateau, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(9, 9, 9)
                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanelCase5, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jPanelCase6, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                        .addGap(19, 19, 19)
                                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabelChateauOuvrier2)
                                            .addComponent(jLabelChateauOuvrier1)
                                            .addComponent(jLabelChateauOuvrier3)
                                            .addComponent(jLabelChateauOuvrier4)
                                            .addComponent(jLabelChateauOuvrier5))))
                                .addGap(23, 23, 23)
                                .addComponent(jPanelCase10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                .addGap(63, 63, 63)
                                .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanelCase8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jPanelCase7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jPanelCase9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                        .addGap(25, 25, 25)
                                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jPanelCase13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                        .addGap(51, 51, 51)
                                        .addComponent(jPanelCase18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jPanelCase19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addGap(112, 112, 112))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelPlateauLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jPanelCase25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(18, 18, 18)
                                        .addGroup(jPanelPlateauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jPanelCase28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase30, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jPanelCase33, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(jPanelPlateauLayout.createSequentialGroup()
                                        .addComponent(jPanelCase11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jPanelCase26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jPanelCase27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanelCase34, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(48, 48, 48))
        );

        jPanelZoneAffichageJoueur.setBorder(javax.swing.BorderFactory.createTitledBorder("Joueur"));

        javax.swing.GroupLayout jPanelZoneAffichageJoueurLayout = new javax.swing.GroupLayout(jPanelZoneAffichageJoueur);
        jPanelZoneAffichageJoueur.setLayout(jPanelZoneAffichageJoueurLayout);
        jPanelZoneAffichageJoueurLayout.setHorizontalGroup(
            jPanelZoneAffichageJoueurLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 252, Short.MAX_VALUE)
        );
        jPanelZoneAffichageJoueurLayout.setVerticalGroup(
            jPanelZoneAffichageJoueurLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 417, Short.MAX_VALUE)
        );

        jPanelAffichageCommande.setBorder(javax.swing.BorderFactory.createTitledBorder("Commandes"));

        jLabelCommandeCoupsPossible.setText("Coups possibles");

        jComboBoxCommandesCoupsPossible.setEnabled(false);

        jButtonCommandesAppliquerCommandes.setText("Appliquer");
        jButtonCommandesAppliquerCommandes.setEnabled(false);
        jButtonCommandesAppliquerCommandes.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButtonCommandesAppliquerCommandesMouseClicked(evt);
            }
        });
        jButtonCommandesAppliquerCommandes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCommandesAppliquerCommandesActionPerformed(evt);
            }
        });

        jTextFieldCommandesCommentaires.setText("Commentaires Coups...");
        jTextFieldCommandesCommentaires.setEnabled(false);
        jTextFieldCommandesCommentaires.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTextFieldCommandesCommentairesMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanelAffichageCommandeLayout = new javax.swing.GroupLayout(jPanelAffichageCommande);
        jPanelAffichageCommande.setLayout(jPanelAffichageCommandeLayout);
        jPanelAffichageCommandeLayout.setHorizontalGroup(
            jPanelAffichageCommandeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAffichageCommandeLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelAffichageCommandeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelCommandeCoupsPossible)
                    .addGroup(jPanelAffichageCommandeLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(jPanelAffichageCommandeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelAffichageCommandeLayout.createSequentialGroup()
                                .addComponent(jTextFieldCommandesCommentaires, javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButtonCommandesAppliquerCommandes))
                            .addComponent(jComboBoxCommandesCoupsPossible, 0, 222, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanelAffichageCommandeLayout.setVerticalGroup(
            jPanelAffichageCommandeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAffichageCommandeLayout.createSequentialGroup()
                .addComponent(jLabelCommandeCoupsPossible)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jComboBoxCommandesCoupsPossible, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelAffichageCommandeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jTextFieldCommandesCommentaires)
                    .addComponent(jButtonCommandesAppliquerCommandes, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE))
                .addContainerGap(151, Short.MAX_VALUE))
        );

        jMenuFenetreDeJeuFichier.setText("Fichier");

        jMenuFenetreDeJeuFichierSauvegarde.setText("Sauvegarder et Quitter");
        jMenuFenetreDeJeuFichierSauvegarde.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuFenetreDeJeuFichierSauvegardeActionPerformed(evt);
            }
        });
        jMenuFenetreDeJeuFichier.add(jMenuFenetreDeJeuFichierSauvegarde);

        jMenuFenetreDeJeuFichierQuitter.setText("Quitter");
        jMenuFenetreDeJeuFichierQuitter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuFenetreDeJeuFichierQuitterActionPerformed(evt);
            }
        });
        jMenuFenetreDeJeuFichier.add(jMenuFenetreDeJeuFichierQuitter);

        jMenuBarFenetreDeJeu.add(jMenuFenetreDeJeuFichier);

        jMenuFenetreDeJeuOutils.setText("Outils");

        jMenuFenetreDeJeuOutilsInfos.setText("Informations Joueurs");
        jMenuFenetreDeJeuOutilsInfos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jMenuFenetreDeJeuOutilsInfosMouseClicked(evt);
            }
        });
        jMenuFenetreDeJeuOutilsInfos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuFenetreDeJeuOutilsInfosActionPerformed(evt);
            }
        });
        jMenuFenetreDeJeuOutils.add(jMenuFenetreDeJeuOutilsInfos);

        jMenuFenetreDeJeuOutilsAmbiance.setText("Ambiance");
        jMenuFenetreDeJeuOutilsAmbiance.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuFenetreDeJeuOutilsAmbianceActionPerformed(evt);
            }
        });
        jMenuFenetreDeJeuOutils.add(jMenuFenetreDeJeuOutilsAmbiance);

        jMenuBarFenetreDeJeu.add(jMenuFenetreDeJeuOutils);

        jMenuFenetreDeJeuAide.setText("Aide");

        jMenuFenetreDeJeuAideReglesDuJeu.setText("Règles du jeu");
        jMenuFenetreDeJeuAideReglesDuJeu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuFenetreDeJeuAideReglesDuJeuActionPerformed(evt);
            }
        });
        jMenuFenetreDeJeuAide.add(jMenuFenetreDeJeuAideReglesDuJeu);

        jMenuBarFenetreDeJeu.add(jMenuFenetreDeJeuAide);

        jMenuFenetreDeJeuExclamation.setText("?");

        jMenuFenetreDeJeuExclamationAPropos.setText("A propos de Caylus");
        jMenuFenetreDeJeuExclamationAPropos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuFenetreDeJeuExclamationAProposActionPerformed(evt);
            }
        });
        jMenuFenetreDeJeuExclamation.add(jMenuFenetreDeJeuExclamationAPropos);

        jMenuFenetreDeJeuExclamationDeveloppeurs.setText("Développé par...");
        jMenuFenetreDeJeuExclamationDeveloppeurs.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuFenetreDeJeuExclamationDeveloppeursActionPerformed(evt);
            }
        });
        jMenuFenetreDeJeuExclamation.add(jMenuFenetreDeJeuExclamationDeveloppeurs);

        jMenuBarFenetreDeJeu.add(jMenuFenetreDeJeuExclamation);

        setJMenuBar(jMenuBarFenetreDeJeu);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelZoneAffichageCroupier, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelPlateau, javax.swing.GroupLayout.PREFERRED_SIZE, 532, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelAffichageCommande, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanelZoneAffichageJoueur, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanelZoneAffichageCroupier, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelZoneAffichageJoueur, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelAffichageCommande, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(jPanelPlateau, javax.swing.GroupLayout.DEFAULT_SIZE, 722, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenuFenetreDeJeuOutilsInfosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuFenetreDeJeuOutilsInfosMouseClicked
       
    }//GEN-LAST:event_jMenuFenetreDeJeuOutilsInfosMouseClicked

    private void jTextFieldCommandesCommentairesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTextFieldCommandesCommentairesMouseClicked
        if(jTextFieldCommandesCommentaires.getText().equals("Commentaires Coups..."))
        jTextFieldCommandesCommentaires.setText("");
    }//GEN-LAST:event_jTextFieldCommandesCommentairesMouseClicked

    private void jButtonCommandesAppliquerCommandesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonCommandesAppliquerCommandesMouseClicked
         if(jButtonCommandesAppliquerCommandes.isEnabled())
             switch(_leCroupier.getPhaseDeJeu()){
              case PLACEMENT_OUVRIER:
                    if (jComboBoxCommandesCoupsPossible.getSelectedItem().equals("passer son tour")) _leCroupier.TraitementPhaseDeux();
                    else if ( _selection != -1 ) {
                            if(_selection==4) {
                                if (_leCroupier._NbOuvrierDansCase5 == 0) {
                                    _emplacementOuvriers.get(_selection).setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/"+ convertColorToString(_leCroupier._joueurCourant.getCouleur() )+".png")));
                                    _emplacementOuvriers.get(_selection).setVisible(true);
                                    _leCroupier._NbOuvrierDansCase5++;
                                    _leCroupier.TraitementPhaseDeux();
                                }   else if(_leCroupier._NbOuvrierDansCase5 == 1)   {
                                    _emplacementOuvriers.get(34).setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/"+ convertColorToString(_leCroupier._joueurCourant.getCouleur() )+".png")));
                                    _emplacementOuvriers.get(34).setVisible(true);
                                    _leCroupier._NbOuvrierDansCase5++;
                                    _leCroupier.Pl1 = _leCroupier._joueurCourant ;
                                    _leCroupier.TraitementPhaseDeux();
                                }   else    {
                                    _emplacementOuvriers.get(35).setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/"+ convertColorToString(_leCroupier._joueurCourant.getCouleur() )+".png")));
                                    _emplacementOuvriers.get(35).setVisible(true);
                                    _leCroupier._NbOuvrierDansCase5++;
                                    _leCroupier.Pl2 = _leCroupier._joueurCourant ;
                                    _leCroupier.TraitementPhaseDeux();
                                }
                            }   else if(_selection==5 & _leCroupier._cases.get(5).getOuvrier() != null )  {
                                _emplacementOuvriers.get(5).setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/"+ convertColorToString(_leCroupier._joueurCourant.getCouleur() )+".png")));
                                _leCroupier._cases.get(5).getOuvrier().getPatron().recupererOuvrierDuneCase(_leCroupier._cases.get(5));
                            }   else if(_selection == 1881) {
                                _emplacementChateau.get(_leCroupier.NbOuvrierDansChateau).setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/"+ convertColorToString(_leCroupier._joueurCourant.getCouleur() )+".png")));
                                _emplacementChateau.get(_leCroupier.NbOuvrierDansChateau).setVisible(true);
                                _leCroupier.NbOuvrierDansChateau++ ;
                                _leCroupier.TraitementPhaseDeux();
                            }   else    {
                                _emplacementOuvriers.get(_selection).setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/"+ convertColorToString(_leCroupier._joueurCourant.getCouleur() )+".png")));
                                _emplacementOuvriers.get(_selection).setVisible(true);
                                _leCroupier.TraitementPhaseDeux();
                            }

                           }    else    {
                                  JOptionPane.showMessageDialog(this,"Faites un autre choix...", "placement impossible", 1, new ImageIcon("src/images/caylus_button_cancel.png"));
                                  _selection = -1 ;
                           }
                                break;
              case ACTIVATION_BATIMENTS_SPECIAUX:
                          if(caseSpecialeTraitee == 1) {
                             if(_selection != -1) {
                                _leCroupier._joueurCourant = _leCroupier._cases.get(0).getOuvrier().getPatron();
                                _emplacementOuvriers.get(_selection).setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/Ouvriers/"+ convertColorToString(_leCroupier._joueurCourant.getCouleur() )+".png")));
                                _emplacementOuvriers.get(_selection).setVisible(true);
                                cacherZoneCommandes();
                                // il faut enlever l'ouvrier de la première case spéciale
                                _emplacementOuvriers.get(0).setVisible(false);
                                // mettre  le champs estOccupeParUnOuvrier
                                jPanelCase1.setEnabled(false);
                                _leCroupier.activerCaseSpecialeUne();
                            }
                      } else if(caseSpecialeTraitee == 3)    {
                          _emplacementOuvriers.get(2).setVisible(false);
                          // ??????????????????? afficher déplacement prevot
                          if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 case vers l'avant")) _leCroupier.activerCaseSpecialeTrois(1);
                          if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 case vers l'arrière")) _leCroupier.activerCaseSpecialeTrois(-1);
                          if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 cases vers l'avant")) _leCroupier.activerCaseSpecialeTrois(2);
                          if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 cases vers l'arrière")) _leCroupier.activerCaseSpecialeTrois(-2);
                          if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("3 cases vers l'avant")) _leCroupier.activerCaseSpecialeTrois(3);
                          if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("3 cases vers l'arrière")) _leCroupier.activerCaseSpecialeTrois(-3);
                          if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("ne pas déplacer le Prévot")) _leCroupier.activerCaseSpecialeTrois(0);
                      } else if (caseSpecialeTraitee == 4)  {
                          _emplacementOuvriers.get(3).setVisible(false);
                          if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("obtenir une faveur du Roi")) _leCroupier.activerCaseSpecialeQuantre(1);
                          if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("ne rien faire")) _leCroupier.activerCaseSpecialeQuantre(2);
                      } else if (caseSpecialeTraitee==6) {
                          cacherZoneCommandes();
                          if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("recuperer l'ouvrier")) _leCroupier.activerCaseSpecialeSix(1);
                          if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("laisser l'ouvrier")) _leCroupier.activerCaseSpecialeSix(2);
                      }
                  break;
              case DEPLACEMENT_PREVOT:
                  if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 case vers l'avant")) _leCroupier.traitementPhaseQuatre(1);
                  else if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 case vers l'arrière")) _leCroupier.traitementPhaseQuatre(-1);
                  else if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 cases vers l'avant")) _leCroupier.traitementPhaseQuatre(2);
                  else if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 cases vers l'arrière")) _leCroupier.traitementPhaseQuatre(-2);
                  else if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("3 cases vers l'avant")) _leCroupier.traitementPhaseQuatre(3);
                  else if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("3 cases vers l'arrière")) _leCroupier.traitementPhaseQuatre(-3);
                  else _leCroupier.traitementPhaseQuatre(0);
                  break;
              case ACTIVATION_BATIMENTS:
                  if(caseSpecialeTraitee == 8){
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 Bois")) _leCroupier.traitementCaseHuit(1);
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 Nourriture")) _leCroupier.traitementCaseHuit(2);
                      _emplacementOuvriers.get(7).setVisible(false);
                  }
                  if(caseSpecialeTraitee == 9){
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("Choisir mon batiment")){
                          
                          _leCroupier.traitementCaseNeuf(); // ce traitement donne le droit de construire
                          //++
                          _emplacementOuvriers.get(8).setVisible(false);
                      }
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("Ne rien construire")) _leCroupier.preparerCaseDix();
                  }
                  if(caseSpecialeTraitee == 10){
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("Ne rien donner")) _leCroupier.traitementCaseDix(1);
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 Bois --> 4 Denier")) _leCroupier.traitementCaseDix(2);
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 Tissu --> 4 Denier")) _leCroupier.traitementCaseDix(3);
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 Or --> 4 Denier")) _leCroupier.traitementCaseDix(4);
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 Pierre --> 4 Denier")) _leCroupier.traitementCaseDix(5);
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 Nourriture --> 4 Denier")) _leCroupier.traitementCaseDix(6);
                      _emplacementOuvriers.get(9).setVisible(false);
                  }
                  if(caseSpecialeTraitee == 11){
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 Nourriture")) _leCroupier.traitementCaseOnze(1);
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 Tissu")) _leCroupier.traitementCaseOnze(2);
                      _emplacementOuvriers.get(10).setVisible(false);
                  }
                  if(caseSpecialeTraitee == 13){
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("Ne rien donner")) _leCroupier.traitementCaseTreize(1);
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 Deniers -> 1 Bois")) _leCroupier.traitementCaseTreize(2);
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 Deniers -> 1 Tissu")) _leCroupier.traitementCaseTreize(3);
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 Deniers -> 1 Pierre")) _leCroupier.traitementCaseTreize(4);
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 Deniers -> 1 Nourriture")) _leCroupier.traitementCaseTreize(5);
                      _emplacementOuvriers.get(12).setVisible(false);
                  }
                  if(caseSpecialeTraitee == 14){
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("Choisir mon batiment")){
                          _leCroupier.traitementCaseQuatorze(); // ce traitement donne le droit de construire
                          // affichilou el le3ba elli 3and mouna
                          //++
                        _emplacementOuvriers.get(8).setVisible(false);
                      }
                      if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("Ne rien construire")) _leCroupier.preparerCaseDix();
                  }
                  break;
              default :
                  break;
          }
    }//GEN-LAST:event_jButtonCommandesAppliquerCommandesMouseClicked

    private void jButtonCommandesAppliquerCommandesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCommandesAppliquerCommandesActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonCommandesAppliquerCommandesActionPerformed

    private void jPanelCase1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase1MouseClicked
        controlSelectionJPanelSelectionnables(0);
    }//GEN-LAST:event_jPanelCase1MouseClicked

    private void jPanelCase2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase2MouseClicked
         controlSelectionJPanelSelectionnables(1);
    }//GEN-LAST:event_jPanelCase2MouseClicked

    private void jPanelCase3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase3MouseClicked
        controlSelectionJPanelSelectionnables(2);
    }//GEN-LAST:event_jPanelCase3MouseClicked

    private void jPanelCase4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase4MouseClicked
       controlSelectionJPanelSelectionnables(3);
    }//GEN-LAST:event_jPanelCase4MouseClicked

    private void jPanelCase5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase5MouseClicked
         controlSelectionJPanelSelectionnables(4);
    }//GEN-LAST:event_jPanelCase5MouseClicked

    private void jPanelCase6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase6MouseClicked
        controlSelectionJPanelSelectionnables(5);
    }//GEN-LAST:event_jPanelCase6MouseClicked

    private void jPanelCase7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase7MouseClicked
        controlSelectionJPanelSelectionnables(6);
    }//GEN-LAST:event_jPanelCase7MouseClicked

    private void jPanelCase8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase8MouseClicked
        controlSelectionJPanelSelectionnables(7);
    }//GEN-LAST:event_jPanelCase8MouseClicked

    private void jPanelCase9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase9MouseClicked
        controlSelectionJPanelSelectionnables(8);
    }//GEN-LAST:event_jPanelCase9MouseClicked

    private void jPanelCase10MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase10MouseClicked
       controlSelectionJPanelSelectionnables(9);
    }//GEN-LAST:event_jPanelCase10MouseClicked

    private void jPanelCase11MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase11MouseClicked
      controlSelectionJPanelSelectionnables(10);
    }//GEN-LAST:event_jPanelCase11MouseClicked

    private void jPanelCase12MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase12MouseClicked
       controlSelectionJPanelSelectionnables(11);
    }//GEN-LAST:event_jPanelCase12MouseClicked

    private void jPanelCase13MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase13MouseClicked
        controlSelectionJPanelSelectionnables(12);
    }//GEN-LAST:event_jPanelCase13MouseClicked

    private void jPanelCase16MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase16MouseClicked
         controlSelectionJPanelSelectionnables(15);
    }//GEN-LAST:event_jPanelCase16MouseClicked

    private void jPanelCase14MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase14MouseClicked
        controlSelectionJPanelSelectionnables(13);
    }//GEN-LAST:event_jPanelCase14MouseClicked

    private void jPanelCase15MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase15MouseClicked
        controlSelectionJPanelSelectionnables(14);
    }//GEN-LAST:event_jPanelCase15MouseClicked

    private void jPanelCase17MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase17MouseClicked
        controlSelectionJPanelSelectionnables(16);
    }//GEN-LAST:event_jPanelCase17MouseClicked

    private void jPanelCase18MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase18MouseClicked
        controlSelectionJPanelSelectionnables(17);
    }//GEN-LAST:event_jPanelCase18MouseClicked

    private void jPanelCase19MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase19MouseClicked
        controlSelectionJPanelSelectionnables(18);
    }//GEN-LAST:event_jPanelCase19MouseClicked

    private void jPanelCase20MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase20MouseClicked
       controlSelectionJPanelSelectionnables(19);
    }//GEN-LAST:event_jPanelCase20MouseClicked

    private void jPanelCase21MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase21MouseClicked
        controlSelectionJPanelSelectionnables(20);
    }//GEN-LAST:event_jPanelCase21MouseClicked

    private void jPanelCase22MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase22MouseClicked
        controlSelectionJPanelSelectionnables(21);
    }//GEN-LAST:event_jPanelCase22MouseClicked

    private void jPanelCase23MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase23MouseClicked
        controlSelectionJPanelSelectionnables(22);
    }//GEN-LAST:event_jPanelCase23MouseClicked

    private void jPanelCase24MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase24MouseClicked
        controlSelectionJPanelSelectionnables(23);
    }//GEN-LAST:event_jPanelCase24MouseClicked

    private void jPanelCase25MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase25MouseClicked
        controlSelectionJPanelSelectionnables(24);
    }//GEN-LAST:event_jPanelCase25MouseClicked

    private void jPanelCase26MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase26MouseClicked
       controlSelectionJPanelSelectionnables(25);
    }//GEN-LAST:event_jPanelCase26MouseClicked

    private void jPanelCase27MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase27MouseClicked
        controlSelectionJPanelSelectionnables(26);
    }//GEN-LAST:event_jPanelCase27MouseClicked

    private void jPanelCase28MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase28MouseClicked
        controlSelectionJPanelSelectionnables(27);
    }//GEN-LAST:event_jPanelCase28MouseClicked

    private void jPanelCase29MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase29MouseClicked
        controlSelectionJPanelSelectionnables(28);
    }//GEN-LAST:event_jPanelCase29MouseClicked

    private void jPanelCase30MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase30MouseClicked
        controlSelectionJPanelSelectionnables(29);
    }//GEN-LAST:event_jPanelCase30MouseClicked

    private void jPanelCase31MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase31MouseClicked
        controlSelectionJPanelSelectionnables(30);
    }//GEN-LAST:event_jPanelCase31MouseClicked

    private void jPanelCase32MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase32MouseClicked
         controlSelectionJPanelSelectionnables(31);
    }//GEN-LAST:event_jPanelCase32MouseClicked

    private void jPanelCase33MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase33MouseClicked
       controlSelectionJPanelSelectionnables(32);
    }//GEN-LAST:event_jPanelCase33MouseClicked

    private void jPanelCase34MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelCase34MouseClicked
        controlSelectionJPanelSelectionnables(33);
    }//GEN-LAST:event_jPanelCase34MouseClicked

    private void jMenuFenetreDeJeuOutilsInfosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuFenetreDeJeuOutilsInfosActionPerformed
        InformationJoueurs iJoueur = new InformationJoueurs(this, true, _leCroupier, _generalSettings);
        iJoueur.setVisible(true);
    }//GEN-LAST:event_jMenuFenetreDeJeuOutilsInfosActionPerformed

    private void jMenuFenetreDeJeuFichierQuitterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuFenetreDeJeuFichierQuitterActionPerformed
        QuitterPartie qPartie = new QuitterPartie(this);
        qPartie.setVisible(true);
    }//GEN-LAST:event_jMenuFenetreDeJeuFichierQuitterActionPerformed

    private void jMenuFenetreDeJeuFichierSauvegardeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuFenetreDeJeuFichierSauvegardeActionPerformed
        SauvegarderPartie sauvPartie = new SauvegarderPartie(this);
        sauvPartie.setVisible(true);
    }//GEN-LAST:event_jMenuFenetreDeJeuFichierSauvegardeActionPerformed

    private void jMenuFenetreDeJeuOutilsAmbianceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuFenetreDeJeuOutilsAmbianceActionPerformed
        
    }//GEN-LAST:event_jMenuFenetreDeJeuOutilsAmbianceActionPerformed

    private void jPanelChateauMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanelChateauMouseClicked
        controlSelectionJPanelSelectionnables(1881);
    }//GEN-LAST:event_jPanelChateauMouseClicked

    private void jMenuFenetreDeJeuExclamationDeveloppeursActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuFenetreDeJeuExclamationDeveloppeursActionPerformed
        DeveloppeePar DP = new DeveloppeePar(this, true);
        DP.setVisible(true);
    }//GEN-LAST:event_jMenuFenetreDeJeuExclamationDeveloppeursActionPerformed

    private void jMenuFenetreDeJeuExclamationAProposActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuFenetreDeJeuExclamationAProposActionPerformed
        APropos aP = new APropos(this, true);
        aP.setVisible(true);
    }//GEN-LAST:event_jMenuFenetreDeJeuExclamationAProposActionPerformed

    private void jMenuFenetreDeJeuAideReglesDuJeuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuFenetreDeJeuAideReglesDuJeuActionPerformed
        AideDuJeu aJeu = new AideDuJeu(this, true);
        aJeu.setVisible(true);
    }//GEN-LAST:event_jMenuFenetreDeJeuAideReglesDuJeuActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonCommandesAppliquerCommandes;
    public javax.swing.JComboBox jComboBoxCommandesCoupsPossible;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabelChateauDonjon1;
    private javax.swing.JLabel jLabelChateauDonjon2;
    private javax.swing.JLabel jLabelChateauDonjon3;
    private javax.swing.JLabel jLabelChateauDonjon4;
    private javax.swing.JLabel jLabelChateauDonjon5;
    private javax.swing.JLabel jLabelChateauDonjon6;
    private javax.swing.JLabel jLabelChateauMurailles1;
    private javax.swing.JLabel jLabelChateauMurailles10;
    private javax.swing.JLabel jLabelChateauMurailles2;
    private javax.swing.JLabel jLabelChateauMurailles3;
    private javax.swing.JLabel jLabelChateauMurailles4;
    private javax.swing.JLabel jLabelChateauMurailles5;
    private javax.swing.JLabel jLabelChateauMurailles6;
    private javax.swing.JLabel jLabelChateauMurailles7;
    private javax.swing.JLabel jLabelChateauMurailles8;
    private javax.swing.JLabel jLabelChateauMurailles9;
    private javax.swing.JLabel jLabelChateauOuvrier1;
    private javax.swing.JLabel jLabelChateauOuvrier2;
    private javax.swing.JLabel jLabelChateauOuvrier3;
    private javax.swing.JLabel jLabelChateauOuvrier4;
    private javax.swing.JLabel jLabelChateauOuvrier5;
    private javax.swing.JLabel jLabelChateauTours1;
    private javax.swing.JLabel jLabelChateauTours10;
    private javax.swing.JLabel jLabelChateauTours11;
    private javax.swing.JLabel jLabelChateauTours12;
    private javax.swing.JLabel jLabelChateauTours13;
    private javax.swing.JLabel jLabelChateauTours14;
    private javax.swing.JLabel jLabelChateauTours2;
    private javax.swing.JLabel jLabelChateauTours3;
    private javax.swing.JLabel jLabelChateauTours4;
    private javax.swing.JLabel jLabelChateauTours5;
    private javax.swing.JLabel jLabelChateauTours6;
    private javax.swing.JLabel jLabelChateauTours7;
    private javax.swing.JLabel jLabelChateauTours8;
    private javax.swing.JLabel jLabelChateauTours9;
    private javax.swing.JLabel jLabelCommandeCoupsPossible;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli10;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli11;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli12;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli13;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli14;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli15;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli16;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli17;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli18;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli19;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli20;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli21;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli22;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli23;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli24;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli25;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli26;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli27;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli28;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli29;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli30;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli31;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli32;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli33;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli34;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli7;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli8;
    private javax.swing.JLabel jLabelEmplacementPrevotBailli9;
    private javax.swing.JLabel jLabelOuvrier2Case5;
    private javax.swing.JLabel jLabelOuvrier3Case5;
    private javax.swing.JLabel jLabelOuvrierCase1;
    private javax.swing.JLabel jLabelOuvrierCase10;
    private javax.swing.JLabel jLabelOuvrierCase11;
    private javax.swing.JLabel jLabelOuvrierCase12;
    private javax.swing.JLabel jLabelOuvrierCase13;
    private javax.swing.JLabel jLabelOuvrierCase14;
    private javax.swing.JLabel jLabelOuvrierCase15;
    private javax.swing.JLabel jLabelOuvrierCase16;
    private javax.swing.JLabel jLabelOuvrierCase17;
    private javax.swing.JLabel jLabelOuvrierCase18;
    private javax.swing.JLabel jLabelOuvrierCase19;
    private javax.swing.JLabel jLabelOuvrierCase2;
    private javax.swing.JLabel jLabelOuvrierCase20;
    private javax.swing.JLabel jLabelOuvrierCase21;
    private javax.swing.JLabel jLabelOuvrierCase22;
    private javax.swing.JLabel jLabelOuvrierCase23;
    private javax.swing.JLabel jLabelOuvrierCase24;
    private javax.swing.JLabel jLabelOuvrierCase25;
    private javax.swing.JLabel jLabelOuvrierCase26;
    private javax.swing.JLabel jLabelOuvrierCase27;
    private javax.swing.JLabel jLabelOuvrierCase28;
    private javax.swing.JLabel jLabelOuvrierCase29;
    private javax.swing.JLabel jLabelOuvrierCase3;
    private javax.swing.JLabel jLabelOuvrierCase30;
    private javax.swing.JLabel jLabelOuvrierCase31;
    private javax.swing.JLabel jLabelOuvrierCase32;
    private javax.swing.JLabel jLabelOuvrierCase33;
    private javax.swing.JLabel jLabelOuvrierCase34;
    private javax.swing.JLabel jLabelOuvrierCase4;
    private javax.swing.JLabel jLabelOuvrierCase40;
    private javax.swing.JLabel jLabelOuvrierCase5;
    private javax.swing.JLabel jLabelOuvrierCase6;
    private javax.swing.JLabel jLabelOuvrierCase7;
    private javax.swing.JLabel jLabelOuvrierCase8;
    private javax.swing.JLabel jLabelOuvrierCase9;
    private javax.swing.JMenuBar jMenuBarFenetreDeJeu;
    private javax.swing.JMenu jMenuFenetreDeJeuAide;
    private javax.swing.JMenuItem jMenuFenetreDeJeuAideReglesDuJeu;
    private javax.swing.JMenu jMenuFenetreDeJeuExclamation;
    private javax.swing.JMenuItem jMenuFenetreDeJeuExclamationAPropos;
    private javax.swing.JMenuItem jMenuFenetreDeJeuExclamationDeveloppeurs;
    private javax.swing.JMenu jMenuFenetreDeJeuFichier;
    private javax.swing.JMenuItem jMenuFenetreDeJeuFichierQuitter;
    private javax.swing.JMenuItem jMenuFenetreDeJeuFichierSauvegarde;
    private javax.swing.JMenu jMenuFenetreDeJeuOutils;
    private javax.swing.JMenuItem jMenuFenetreDeJeuOutilsAmbiance;
    private javax.swing.JMenuItem jMenuFenetreDeJeuOutilsInfos;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanelAffichageCommande;
    private javax.swing.JPanel jPanelCase1;
    private javax.swing.JPanel jPanelCase10;
    private javax.swing.JPanel jPanelCase11;
    private javax.swing.JPanel jPanelCase12;
    private javax.swing.JPanel jPanelCase13;
    private javax.swing.JPanel jPanelCase14;
    private javax.swing.JPanel jPanelCase15;
    private javax.swing.JPanel jPanelCase16;
    private javax.swing.JPanel jPanelCase17;
    private javax.swing.JPanel jPanelCase18;
    private javax.swing.JPanel jPanelCase19;
    private javax.swing.JPanel jPanelCase2;
    private javax.swing.JPanel jPanelCase20;
    private javax.swing.JPanel jPanelCase21;
    private javax.swing.JPanel jPanelCase22;
    private javax.swing.JPanel jPanelCase23;
    private javax.swing.JPanel jPanelCase24;
    private javax.swing.JPanel jPanelCase25;
    private javax.swing.JPanel jPanelCase26;
    private javax.swing.JPanel jPanelCase27;
    private javax.swing.JPanel jPanelCase28;
    private javax.swing.JPanel jPanelCase29;
    private javax.swing.JPanel jPanelCase3;
    private javax.swing.JPanel jPanelCase30;
    private javax.swing.JPanel jPanelCase31;
    private javax.swing.JPanel jPanelCase32;
    private javax.swing.JPanel jPanelCase33;
    private javax.swing.JPanel jPanelCase34;
    private javax.swing.JPanel jPanelCase4;
    private javax.swing.JPanel jPanelCase40;
    private javax.swing.JPanel jPanelCase5;
    private javax.swing.JPanel jPanelCase6;
    private javax.swing.JPanel jPanelCase7;
    private javax.swing.JPanel jPanelCase8;
    private javax.swing.JPanel jPanelCase9;
    private javax.swing.JPanel jPanelChateau;
    private javax.swing.JPanel jPanelDonjon;
    private javax.swing.JPanel jPanelPlateau;
    public javax.swing.JPanel jPanelZoneAffichageCroupier;
    private javax.swing.JPanel jPanelZoneAffichageJoueur;
    private javax.swing.JTextField jTextFieldCommandesCommentaires;
    // End of variables declaration//GEN-END:variables

    private void dimensionnerFenetre() {
            Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
            this.setSize(screen.width,screen.height-40);
        }
    public String getjComboBoxCommandesCoupsPossible(){
        return jComboBoxCommandesCoupsPossible.getSelectedItem().toString().toUpperCase().replace(" ", "_");
    }
    public void cacherZoneCommandes(){
        jComboBoxCommandesCoupsPossible.setEnabled(false);
        jButtonCommandesAppliquerCommandes.setEnabled(false);
        jTextFieldCommandesCommentaires.setEnabled(false);
    }
    public void activerZoneCommandes(){
        jComboBoxCommandesCoupsPossible.setEnabled(true);
        jButtonCommandesAppliquerCommandes.setEnabled(true);
        jTextFieldCommandesCommentaires.setEnabled(true);
    }
    public void afficherUneBordureSurLaSelection(int pSelection) {
        for (JPanel jP : jPanelSelectionnables)
        {
            jP.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        }
         jPanelChateau.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

         
        if (pSelection < 39) // la selection est une case
            jPanelSelectionnables.get(pSelection).setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 0, 102)));
        if (pSelection == 1881)  // le chateau est séléctionné
            jPanelChateau.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 0, 102)));
    }
    public void deselection() {
        for (JPanel jP : jPanelSelectionnables)
        {
            jP.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        }
         jPanelChateau.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    }
    public void init2(){
            jPanelSelectionnables = new ArrayList<JPanel>();
            jPanelSelectionnables.add(jPanelCase1);
            jPanelSelectionnables.add(jPanelCase2);
            jPanelSelectionnables.add(jPanelCase3);
            jPanelSelectionnables.add(jPanelCase4);
            jPanelSelectionnables.add(jPanelCase5);
            jPanelSelectionnables.add(jPanelCase6);
            jPanelSelectionnables.add(jPanelCase7);
            jPanelSelectionnables.add(jPanelCase8);
            jPanelSelectionnables.add(jPanelCase9);
            jPanelSelectionnables.add(jPanelCase10);
            jPanelSelectionnables.add(jPanelCase11);
            jPanelSelectionnables.add(jPanelCase12);
            jPanelSelectionnables.add(jPanelCase13);
            jPanelSelectionnables.add(jPanelCase14);
            jPanelSelectionnables.add(jPanelCase15);
            jPanelSelectionnables.add(jPanelCase16);
            jPanelSelectionnables.add(jPanelCase17);
            jPanelSelectionnables.add(jPanelCase18);
            jPanelSelectionnables.add(jPanelCase19);
            jPanelSelectionnables.add(jPanelCase20);
            jPanelSelectionnables.add(jPanelCase21);
            jPanelSelectionnables.add(jPanelCase22);
            jPanelSelectionnables.add(jPanelCase23);
            jPanelSelectionnables.add(jPanelCase24);
            jPanelSelectionnables.add(jPanelCase25);
            jPanelSelectionnables.add(jPanelCase26);
            jPanelSelectionnables.add(jPanelCase27);
            jPanelSelectionnables.add(jPanelCase28);
            jPanelSelectionnables.add(jPanelCase29);
            jPanelSelectionnables.add(jPanelCase30);
            jPanelSelectionnables.add(jPanelCase31);
            jPanelSelectionnables.add(jPanelCase32);
            jPanelSelectionnables.add(jPanelCase33);
            jPanelSelectionnables.add(jPanelCase34);
           

            _emplacementOuvriers = new ArrayList<JLabel>();
            _emplacementOuvriers.add(jLabelOuvrierCase1);
            _emplacementOuvriers.add(jLabelOuvrierCase2);
            _emplacementOuvriers.add(jLabelOuvrierCase3);
            _emplacementOuvriers.add(jLabelOuvrierCase4);
            _emplacementOuvriers.add(jLabelOuvrierCase5);
            _emplacementOuvriers.add(jLabelOuvrierCase6);
            _emplacementOuvriers.add(jLabelOuvrierCase7);
            _emplacementOuvriers.add(jLabelOuvrierCase8);
            _emplacementOuvriers.add(jLabelOuvrierCase9);
            _emplacementOuvriers.add(jLabelOuvrierCase10);
            _emplacementOuvriers.add(jLabelOuvrierCase11);
            _emplacementOuvriers.add(jLabelOuvrierCase12);
            _emplacementOuvriers.add(jLabelOuvrierCase13);
            _emplacementOuvriers.add(jLabelOuvrierCase14);
            _emplacementOuvriers.add(jLabelOuvrierCase15);
            _emplacementOuvriers.add(jLabelOuvrierCase16);
            _emplacementOuvriers.add(jLabelOuvrierCase17);
            _emplacementOuvriers.add(jLabelOuvrierCase18);
            _emplacementOuvriers.add(jLabelOuvrierCase19);
            _emplacementOuvriers.add(jLabelOuvrierCase20);
            _emplacementOuvriers.add(jLabelOuvrierCase21);
            _emplacementOuvriers.add(jLabelOuvrierCase22);
            _emplacementOuvriers.add(jLabelOuvrierCase23);
            _emplacementOuvriers.add(jLabelOuvrierCase24);
            _emplacementOuvriers.add(jLabelOuvrierCase25);
            _emplacementOuvriers.add(jLabelOuvrierCase26);
            _emplacementOuvriers.add(jLabelOuvrierCase27);
            _emplacementOuvriers.add(jLabelOuvrierCase28);
            _emplacementOuvriers.add(jLabelOuvrierCase29);
            _emplacementOuvriers.add(jLabelOuvrierCase30);
            _emplacementOuvriers.add(jLabelOuvrierCase31);
            _emplacementOuvriers.add(jLabelOuvrierCase32);
            _emplacementOuvriers.add(jLabelOuvrierCase33);
            _emplacementOuvriers.add(jLabelOuvrierCase34);
            _emplacementOuvriers.add(jLabelOuvrier2Case5);
            _emplacementOuvriers.add(jLabelOuvrier3Case5);

            for(JLabel emplacementOuvriers : _emplacementOuvriers){
              emplacementOuvriers.setVisible(false);
            }

            _emplacementPrevotBailli = new ArrayList<JLabel>();
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli7);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli8);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli9);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli10);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli11);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli12);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli13);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli14);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli15);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli16);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli17);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli18);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli19);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli20);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli21);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli22);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli23);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli24);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli25);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli26);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli27);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli28);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli29);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli30);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli31);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli32);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli33);
            _emplacementPrevotBailli.add(jLabelEmplacementPrevotBailli34);

            for(JLabel jPB : _emplacementPrevotBailli){
                jPB.setVisible(false);
            }
            jLabelEmplacementPrevotBailli12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/pb.png")));
            jLabelEmplacementPrevotBailli12.setVisible(true);

            _emplacementChateau = new ArrayList<JLabel>();
            _emplacementChateau.add(jLabelChateauOuvrier1);
            _emplacementChateau.add(jLabelChateauOuvrier2);
            _emplacementChateau.add(jLabelChateauOuvrier3);
            _emplacementChateau.add(jLabelChateauOuvrier4);
            _emplacementChateau.add(jLabelChateauOuvrier5);

            for (JLabel jLB : _emplacementChateau ) {
                jLB.setVisible(false);
            }

            _emplacementDonjon = new ArrayList<JLabel>();
            _emplacementDonjon.add(jLabelChateauDonjon1);
            _emplacementDonjon.add(jLabelChateauDonjon2);
            _emplacementDonjon.add(jLabelChateauDonjon3);
            _emplacementDonjon.add(jLabelChateauDonjon4);
            _emplacementDonjon.add(jLabelChateauDonjon5);
            _emplacementDonjon.add(jLabelChateauDonjon6);
            for (JLabel jLB : _emplacementDonjon ) {
                jLB.setVisible(false);
            }
            _emplacementMurailles = new ArrayList<JLabel>();
            _emplacementMurailles.add(jLabelChateauMurailles1);
            _emplacementMurailles.add(jLabelChateauMurailles2);
            _emplacementMurailles.add(jLabelChateauMurailles3);
            _emplacementMurailles.add(jLabelChateauMurailles4);
            _emplacementMurailles.add(jLabelChateauMurailles5);
            _emplacementMurailles.add(jLabelChateauMurailles6);
            _emplacementMurailles.add(jLabelChateauMurailles7);
            _emplacementMurailles.add(jLabelChateauMurailles8);
            _emplacementMurailles.add(jLabelChateauMurailles9);
            _emplacementMurailles.add(jLabelChateauMurailles10);
            for (JLabel jLB : _emplacementMurailles ) {
                jLB.setVisible(false);
            }
            _emplacementTours = new ArrayList<JLabel>();
            _emplacementTours.add(jLabelChateauTours1);
            _emplacementTours.add(jLabelChateauTours2);
            _emplacementTours.add(jLabelChateauTours3);
            _emplacementTours.add(jLabelChateauTours4);
            _emplacementTours.add(jLabelChateauTours5);
            _emplacementTours.add(jLabelChateauTours6);
            _emplacementTours.add(jLabelChateauTours7);
            _emplacementTours.add(jLabelChateauTours8);
            _emplacementTours.add(jLabelChateauTours9);
            _emplacementTours.add(jLabelChateauTours10);
            _emplacementTours.add(jLabelChateauTours11);
            _emplacementTours.add(jLabelChateauTours12);
            _emplacementTours.add(jLabelChateauTours13);
            _emplacementTours.add(jLabelChateauTours14);
            for (JLabel jLB : _emplacementTours ) {
                jLB.setVisible(false);
            }
        }

    public String convertColorToString(Color pColor) {
            if (pColor.equals(Color.BLACK) ) return "noir";
            else if (pColor.equals(Color.BLUE) ) return "bleu";
            else if (pColor.equals(Color.RED) ) return "rouge";
            else if (pColor.equals(Color.ORANGE) ) return "orange";
            else if (pColor.equals(Color.GREEN) ) return "vert";
            else return "haha";
        }
    public void set_selection(int _selection) {
        this._selection = _selection;
    }
    public int get_selection() {
        return _selection;
    }
    public void controlSelectionJPanelSelectionnables(int pSelection){
        if (pSelection==5) {
            _selection = pSelection ;
            afficherUneBordureSurLaSelection(pSelection);
        }   else if ( pSelection == 1881 )  {
            if (_leCroupier.NbOuvrierDansChateau <= 4) {
                _selection = pSelection ;
                afficherUneBordureSurLaSelection(pSelection);
            }   else    {
                JOptionPane.showMessageDialog(this,"Faites un autre choix...", "placement impossible", 1, new ImageIcon("src/images/caylus_button_cancel.png"));
            }
        }   else    {
            if(_leCroupier.placementPossible(pSelection)) {
            _selection = pSelection;
            afficherUneBordureSurLaSelection(pSelection);
            }   else
            JOptionPane.showMessageDialog(this,"Faites un autre choix...", "placement impossible", 1, new ImageIcon("src/images/caylus_button_cancel.png"));
        }
    }
    public void afficherPaneauPhaseTrois() {
        _optionDessinPanelJeu = 3 ;
        jPanelPlateau.repaint();
    }
    public void afficherMassagePhaseTrois(String joueur) {
        JOptionPane.showMessageDialog(this,"Activation des bâtiments spéciaux : Porte\n"+joueur+" , vous pouvez placer gratuitement votre ouvrier sur\nune case inoccupée de votre choix");
    }
    public void afficherMassagePhaseTroisGuildeMarchands(String joueur) {
        JOptionPane.showMessageDialog(this,"Activation des bâtiments spéciaux : Guilde des marchands\n"+joueur+" , vous pouvez placer déplacer le Prevot\nChoisir dans la liste.");
    }
    public void afficherMassagePhaseTroisGuildeChampsDeJoute(String joueur) {
        JOptionPane.showMessageDialog(this,"Activation des bâtiments spéciaux : Champs de joute\n"+joueur+" , vous pouvez obtenir une faveur de Roi\nmoyennant un denier et un cube tissu\faite votre choix dans la liste");
    }
    public void afficherMassageChangementClassement() {
        JOptionPane.showMessageDialog(this,"Changement de classement pris en compte");
    }
    public void afficherMassagePhaseQuatreJoueurParJoueur(String joueur) {
        JOptionPane.showMessageDialog(this,"Déplacement de Prévot :\n"+joueur+", vous avez la possibilité de déplacer le\nPrévot. Pour cela, faites votre choix dans la liste.");
    }
    public void afficherMessageCaseSpecialeSix(String joueur) {
        JOptionPane.showMessageDialog(this,"Activation des bâtiments spéciaux : Auberge\n"+joueur+", désormais vous ne paierez que 1 deniers pour placer un ouvrier\ngrâce à la présence de l'un de vous ouvrier dans l'Auberge.\nVoulez vous le récupérer ou le laisser?\nfaite votre choix dans la liste");
    }
     public void afficherMessageCaseSept(String pJoueur) {
        JOptionPane.showMessageDialog(this,"Activation de la case sept : \n" +pJoueur+" reçoit 1 pierre.");
        _leCroupier.traitementCaseSept();
    }
    public void afficherMessageCaseHuit(String pJoueur) {
          JOptionPane.showMessageDialog(this,"Activation de la case huit : \n" +pJoueur+" doit choisir entre : 1 bois et 1 nourriture.", "information", JOptionPane.WARNING_MESSAGE);
    }
    public void afficherMessageCaseNeuf(String pJoueur) {
          JOptionPane.showMessageDialog(this,"Activation de la case neuf : \n" +pJoueur+" a le droit de construire un batiment en bois.");
    }
    public void afficherMessageCaseDix(String pJoueur) {
          JOptionPane.showMessageDialog(this,"Activation de la case dix : \n" +pJoueur+" peut donner un cube au choix et reçoit 4 Deniers.");
    }
    public void afficherMessageCaseOnze(String pJoueur) {
          JOptionPane.showMessageDialog(this,"Activation de la case onze : \n" +pJoueur+" doit choisir entre : 1 nourriture et 1 tissu.");
    }
    public void afficherMessageCaseDouze(String pJoueur) {
        JOptionPane.showMessageDialog(this,"Activation de la case douze : \n" +pJoueur+" reçoit 1 bois.");
    }
    public void afficherMessageCaseTreize(String pJoueur) {
        JOptionPane.showMessageDialog(this,"Activation de la case treize : \n" +pJoueur+" débourse 2 deniers et reçoit un cube au choix.");
    }
    public void afficherMessageCaseTreizeErreur(String pJoueur) {
        JOptionPane.showMessageDialog(this,"Activation de la case treize : \n" +pJoueur+": vous n'avez pas assez de deniers pour profiter de l'effet de cette case.");
    }
    public void messageChateauVide(){
       JOptionPane.showMessageDialog(this,"Activation du chateau : \n" +" Le chateau est vide!!");
    }
    public void messagePhaseCinqTerminee(){
        JOptionPane.showMessageDialog(this,"Activation des batiments terminée\n" +" Phase actuelle: Construction du château");
    }
    public void activerjButtonAppliquer(){
        jButtonCommandesAppliquerCommandes.setEnabled(true);
    }

    public void preparerValeurRetourPourCaseDynamique(){
       switch(_leCroupier._cases.get(caseSpecialeTraitee-1).getEtiquette().get_numero()) {
             case 7 :
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("ne rien donner")){
                    _leCroupier.preparerCaseDynamique(caseSpecialeTraitee+1);
                    break ;
                }  
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 bois -> 6 deniers"))
                    _leCroupier.traitementCaseDynamique(2);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 tissu -> 6 deniers"))
                    _leCroupier.traitementCaseDynamique(3);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 pierre -> 6 deniers"))
                    _leCroupier.traitementCaseDynamique(4);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 nourriture -> 6 deniers"))
                    _leCroupier.traitementCaseDynamique(5);
                break ;
            case 8 :
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("recevoir 2 nourriture"))
                    _leCroupier.traitementCaseDynamique(1);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("recevoir 1 tissu"))
                    _leCroupier.traitementCaseDynamique(2);
                break ;
            case 9 :
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("ne rien faire"))
                    break;
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("construire un bâtiment résidentiel(vert)"))
                    _leCroupier.traitementCaseDynamique(1881); // 1881 ne sert à rien ici
                break ;
            case 10 :
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("recevoir 2 tissu"))
                    _leCroupier.traitementCaseDynamique(1);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("recevoir 1 nourriture"))
                    _leCroupier.traitementCaseDynamique(2);
                break ;
            case 11 :
                //_plateauDeJeu.cacherZoneCommandes();
                break ;
            case 12 :
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("ne rien donner"))
                    _leCroupier.traitementCaseDynamique(15);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 denier -> 1 bois"))
                    _leCroupier.traitementCaseDynamique(1);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 denier -> 1 tissu"))
                    _leCroupier.traitementCaseDynamique(2);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 denier -> 1 pierre"))
                    _leCroupier.traitementCaseDynamique(3);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("1 denier -> 1 nourriture"))
                    _leCroupier.traitementCaseDynamique(4);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 denier -> 1 bois et 1 tissu"))
                    _leCroupier.traitementCaseDynamique(5);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 denier -> 1 bois et 1 pierre"))
                    _leCroupier.traitementCaseDynamique(6);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 denier -> 1 bois et 1 nourriture"))
                    _leCroupier.traitementCaseDynamique(7);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 denier -> 1 tissu et 1 pierre"))
                    _leCroupier.traitementCaseDynamique(8);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 denier -> 1 tissu et 1 nourriture"))
                    _leCroupier.traitementCaseDynamique(9);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 denier -> 1 pierre et 1 nourriture"))
                    _leCroupier.traitementCaseDynamique(10);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 denier -> 2 bois"))
                    _leCroupier.traitementCaseDynamique(11);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 denier -> 2 tissus"))
                    _leCroupier.traitementCaseDynamique(12);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 denier -> 2 pierres"))
                    _leCroupier.traitementCaseDynamique(13);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 denier -> 2 nourritures"))
                    _leCroupier.traitementCaseDynamique(14);
                break ;
            case 13 :
                 _leCroupier.traitementCaseDynamique(1881);
                break ;
            case 14 :
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("ne rien faire"))
                    break;
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("construire un bâtiment de production(gris)"))
                    _leCroupier.traitementCaseDynamique(1);
                break ;
            case 15 :case 16 :
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("ne rien faire"))
                    break;
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("construire un bâtiment de prestige(bleu)"))
                    _leCroupier.traitementCaseDynamique(1);
                break ;
            case 19 :
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 tissu -> 4 points de prestige"))
                    _leCroupier.traitementCaseDynamique(1);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("3 tissu -> 6 points de prestige"))
                    _leCroupier.traitementCaseDynamique(2);
                break ;
            case 20 :
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 deniers -> 3 points de prestige"))
                    _leCroupier.traitementCaseDynamique(1);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("4 deniers -> 5 points de prestige"))
                    _leCroupier.traitementCaseDynamique(2);
                break ;
            case 21 :
               preparerComposerLot(_leCroupier._cases.get(caseSpecialeTraitee-1).getOuvrier().getPatron(),PhaseDuJeu.ACTIVATION_BATIMENTS);
                break ;
            case 23 :
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("2 denier -> 1 or"))
                    _leCroupier.traitementCaseDynamique(1);
                if(jComboBoxCommandesCoupsPossible.getSelectedItem().equals("5 denier -> 2 or"))
                    _leCroupier.traitementCaseDynamique(2);
                break ;
            case 24 :case 25 :case 26 :case 27 :case 28 :case 29 : case 30 :case 31 :
                _leCroupier.traitementCaseDynamique(1881);
                break ;
            case 32 : case 33 :case 34 :case 36 :case 37 :case 38 :case 39 :case 40 :
                _leCroupier.traitementCaseDynamique(1881);
                break ;
            default :
                break ;
        }
    }

    public void replacerBailliPrevot(){
        for(JLabel jPB : _emplacementPrevotBailli){
            jPB.setVisible(false);
        }
        if(_leCroupier.get_leBailli().getPosition() == _leCroupier.get_lePrevot().getPosition()){
            _emplacementPrevotBailli.get(_leCroupier.get_leBailli().getPosition() - 7).setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/pb.png")));
            _emplacementPrevotBailli.get(_leCroupier.get_leBailli().getPosition() - 7).setVisible(true);
        }
        else{
             _emplacementPrevotBailli.get(_leCroupier.get_leBailli().getPosition() - 7).setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/b.png")));
             _emplacementPrevotBailli.get(_leCroupier.get_leBailli().getPosition() - 7).setVisible(true);
             _emplacementPrevotBailli.get(_leCroupier.get_lePrevot().getPosition() - 7).setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/PB/p.png")));
             _emplacementPrevotBailli.get(_leCroupier.get_lePrevot().getPosition() - 7).setVisible(true);
        }
    }

     public void afficherMessagePenaliteChateau(String pJoueur){
        JOptionPane.showMessageDialog(this,"Phase Construction Chateau : \n" +pJoueur+": vous serez pénaliser car vous avez placer un ouvrier\ndans le chateau sans disposer de suffisament de ressources.\nDeux points de prestiges, vous seront hotés");
    }

     public void centrerFenetre(){
            java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
            pack();
            setLocation(
                        (screenSize.width-this.getWidth())/2,
                        (screenSize.height-this.getHeight())/2
                       );
    }
}
